<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://d3js.org/d3.v5.min.js"></script>
  <style>
    .container path {
      stroke-width: 3px;
      stroke:blue;
    }
    .container line {
      stroke-width: 3px;
      stroke:green;
    }

    .container text {
      stroke-width: 3px;
      stroke:red;
    }


  </style>
</head>

<body>

  <svg style="width: 500; height: 500; background:#efefef" class="container">


  </svg>

  <script>

    var dataset = [10, 20, 30, 40, 50]

    let xScale = d3.scaleLinear().domain([0, d3.max(dataset)]).range([10,490]);

    let xAxis = d3.axisTop(xScale).ticks(5);

    // xAxis.orient("top");

    let svg = d3.select('svg')

    svg.append("g")
    .attr("transform","translate(0,100)")
    .call(xAxis);



  </script>

</body>

</html>